#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Taotie Ren
# import logging 
# 禁用日志模块
# logging.disable(logging.CRITICAL)
# logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s - %(message)s')
import sys, time
def view_bar(num, total):
	rate = num/total
	rate_num = int(rate * 100)
	r1 = '\r%s>%d%%' % ("="*rate_num,rate_num )
	sys.stdout.write(r1)
	sys.stdout.flush()

if __name__ == '__main__':
    for i in range(0, 101):
	    time.sleep(0.1)
	    view_bar(i, 100)
